<template>
  <div class="header-nav">
    <div class="header-item">
      <div class="title-panel">
        <i class="el-icon-s-flag"></i>
        <p class="ml-10">今日</p>
      </div>
      <div class="number-panel">
        <p>注册数：</p>
        <p>111</p>
      </div>
      <div class="number-panel">
        <p>充值金额：</p>
        <p>¥111</p>
      </div>
      <div class="number-panel">
        <p>人均充值：</p>
        <p>¥111</p>
      </div>
    </div>
    <div class="header-item">
      <div class="title-panel">
        <i class="el-icon-s-flag"></i>
        <p class="ml-10">昨日</p>
      </div>
      <div class="number-panel">
        <p>注册数：</p>
        <p>111</p>
      </div>
      <div class="number-panel">
        <p>充值金额：</p>
        <p>¥111</p>
      </div>
      <div class="number-panel">
        <p>人均充值：</p>
        <p>¥111</p>
      </div>
    </div>
    <div class="header-item">
      <div class="title-panel">
        <i class="el-icon-s-flag"></i>
        <p class="ml-10">最近7日</p>
      </div>
      <div class="number-panel">
        <p>注册数：</p>
        <p>111</p>
      </div>
      <div class="number-panel">
        <p>充值金额：</p>
        <p>¥111</p>
      </div>
      <div class="number-panel">
        <p>人均充值：</p>
        <p>¥111</p>
      </div>
    </div>
    <div class="header-item">
      <div class="title-panel">
        <i class="el-icon-s-flag"></i>
        <p class="ml-10">当月数据</p>
      </div>
      <div class="number-panel">
        <p>注册数：</p>
        <p>111</p>
      </div>
      <div class="number-panel">
        <p>充值金额：</p>
        <p>¥111</p>
      </div>
      <div class="number-panel">
        <p>人均充值：</p>
        <p>¥111</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'IndexStatistics',
  props: {
    statisticsData: {
      type: Object
    }
  }
}
</script>

<style lang="scss" scoped>

.header-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.header-item {
  width: 24%;
  background-color: #F7F8FA;
  border-radius: 4px;
  padding: 20px 15px;
  .title-panel {
    display: flex;
    align-items: center;
    color: #333333;
    font-size: 20px;
    font-weight: bold;
    i {
      color: #6959CD;
    }
  }
  .number-panel {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333333;
    margin-top: 20px;
    p:nth-child(1){
      width: 80px;
    }
  }
}

@media (max-width: 768px) {
  .header-item {
    margin-top: 20px;
    width: 100%;
  }
}
</style>
